FtMscLibEx StartMotorExCmd4 Method FtMscLibExNet for .NET framework 4
Support for fischertechnik TX-controller

[This is preliminary documentation and is subject to change.]

API 3.13A
StartMotorExCmd4(extended)
Function activates the intelligent motor mode for motor synchronization. The motor moves to the desired position using the shared counter information. The application shares the information that the motor has reached the end position by using a previously installed callback function (see also SetCBMotorExReached()). The function is able to managed 1,2 or 3 slaves. However all motor have their proper CBMotorExReached notification.

Namespace: FischerTechnik.FtMscLib.API
Assembly: FtMscLibVBNet (in FtMscLibVBNet.dll) Version: 1.0.0.1 (1.0.0.10)
Syntax

public uint StartMotorExCmd4(
	FtDeviceID devId,
	FtMotor mIdx,
	int duty,
	FtMotorDirection mdirection,
	FtMotor s1Idx,
	FtMotorDirection s1Direction,
	FtMotor s2Idx,
	FtMotorDirection s2Direction,
	FtMotor s3Idx,
	FtMotorDirection s3Direction,
	int pulseCnt
)

Parameters

devId
Type: FischerTechnik.FtMscLib.Enumurations FtDeviceID
controller ID (master or extension controller)
mIdx
Type: FischerTechnik.FtMscLib.Enumurations FtMotor
0,1,2,3 for a master motor;
duty
Type: System Int32
duty value for master and slave motors, 0..512
mdirection
Type: FischerTechnik.FtMscLib.Enumurations FtMotorDirection
(0= CW, 1= CCW
s1Idx
Type: FischerTechnik.FtMscLib.Enumurations FtMotor
motor index (0 to 3, -1 or 255 not in use) from slave1 (motor)
s1Direction
Type: FischerTechnik.FtMscLib.Enumurations FtMotorDirection
(0= CW, 1= CCW
s2Idx
Type: FischerTechnik.FtMscLib.Enumurations FtMotor
motor index (0 to 3, -1 or 255 not in use) from slave2 (motor)
s2Direction
Type: FischerTechnik.FtMscLib.Enumurations FtMotorDirection
(0= CW, 1= CCW
s3Idx
Type: FischerTechnik.FtMscLib.Enumurations FtMotor
motor index (0 to 3, -1 or 255 not in use) from slave3 (motor)
s3Direction
Type: FischerTechnik.FtMscLib.Enumurations FtMotorDirection
(0= CW, 1= CCW
pulseCnt
Type: System Int32
number of count pulses for moving to a position, relative to the starting position

Return Value

Type: UInt32
FTLIB_ERR_SUCCESS (no error) or error code
Remarks

Need to wait for a CBMotorExReachedEvent for each motor in use (JOIN).
Examples

See Also

Reference